%%%-------------------------------------------------------------------
%% @doc metronome public API
%% @end
%%%-------------------------------------------------------------------

-module(metronome).

-export([start/0, stop/0]).
-export([join/1]).
-export([quit/1]).

%%%-------------------------------------------------------------------
start() ->
    {ok, _} = application:ensure_all_started(metronome).

stop() ->
    gen_server:call(metronome_subscribe, cleanup),
    ok.


%%%-------------------------------------------------------------------
join(Pid) ->
    gen_server:cast(metronome_subscribe, {join, Pid}).

quit(Pid) ->
    gen_server:cast(metronome_subscribe, {quit, Pid}).

%% internal functions
